package com.jeeplus.mob.web;

import com.jeeplus.common.json.AjaxJson;
import com.jeeplus.mob.entity.mobpojo.BuildingcardrecordInfo;
import com.jeeplus.mob.service.BuildingcardrecordService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/mob/buildingCardrecord")
public class BuildingcardrecordController {

    @Autowired
    private BuildingcardrecordService buildingcardrecordService;

    /**
     * 楼宇打卡
     * @param buildingcardrecordInfo
     * @return
     */
    @RequestMapping(value = "punchBuilding",method = RequestMethod.POST)
    @ApiOperation(value = "楼宇打卡")
    public AjaxJson punchBuilding(BuildingcardrecordInfo buildingcardrecordInfo) {
        AjaxJson ajaxJson = buildingcardrecordService.punchBuilding(buildingcardrecordInfo);
        return ajaxJson;
    }
}
